/*
 * @Author: your name
 * @Date: 2021-10-01 09:47:40
 * @LastEditTime: 2021-10-01 10:08:33
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \h5\config.js
 */
/*
 * @Author: your name
 * @Date: 2021-09-15 21:37:59
 * @LastEditTime: 2021-09-22 23:26:38
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \henghuisheng\config.js
 */
// h5 平台
//#ifdef H5
const BASE_URL = function () {
    let url;
    if (process.env.NODE_ENV === 'development') {
        url = 'https://heng.leyichina.top/index.php/api/'
    } else {
        url = 'https://heng.leyichina.top/index.php/api/'
    }
    return url;
};
//#endif

//微信平台
//#ifdef MP-WEIXIN
const BASE_URL = function () {
    let url;
    if (process.env.NODE_ENV === 'development') {
        //马哥本地地址
        // url = 'http://192.168.1.118:10020/api.php'
        url = 'https://heng.leyichina.top/index.php/api/'
        //振超本地地址
        // url = 'http://192.168.4.13/ph/public/index.php/api/'
    } else {
        url = 'https://heng.leyichina.top/index.php/api/'
    }
    return url;
};
//#endif

// app平台
//#ifdef APP-PLUS
const BASE_URL = function () {
    let url;
    if (process.env.NODE_ENV === 'development') {
        url = 'https://heng.leyichina.top/index.php'
    } else {
        url = 'https://www.sina.com'
    }
    return url;
};
//#endif

export default BASE_URL();